package com.lzh.persevere.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lzh.persevere.mapper.UserRoleMapper;
import com.lzh.persevere.model.entity.UserRole;
import com.lzh.persevere.service.UserRoleService;
import org.springframework.stereotype.Service;

/**
 * 用户和角色关联表(SysUserRole)表服务实现类
 *
 * @author luzhiheng
 * @since 2023-12-28 16:14:28
 */
@Service("userRoleService")
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {

    @Override
    public void removeByUserId(Long userId) {
        baseMapper.deleteByUserId(userId);
    }
}

